package game.engine.base.render

import android.graphics.Canvas
import game.engine.base.Node
import game.engine.base.Sprite

class CanvasRender {

    fun renderScene(node: Node, canvas: Canvas){
        if (!node.visible || node.willDestroy){
            return
        }

        when{
            node is Sprite->{
                renderSprite(node,canvas)
            }
        }
    }

    fun renderSprite(sprite: Sprite, canvas: Canvas){
        if (sprite.bitmap == null){
            return
        }



    }
}